{% extends "admin/layout/admin.html" %}
{% block content %}
<div id="page-wrapper">
    <div class="row ">
        <div class="col-lg-12">
            <br/>
        </div>
    </div>
    <div class="row ">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <strong>标签管理</strong>
                </div>
                <!-- /.panel-heading -->
                <div class="panel-body">

                    <div class="row ">
                        <div class="col-lg-12">
                            <div class="btn-group">
                                <button type="button" class="btn btn-success" >
                                    添加 
                                </button>   
                                
                            </div>
                        </div>
                    </div>
                    {%if flash(false)%}
                    <div class="row ">
                        <div class="col-lg-12">
                            <div class="alert alert-{{flashCode(false)}} alert-dismissable">
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">X</button>
                                {{flash()}}
                            </div>
                        </div>
                    </div>
                    {%endif%}


                    <div class="row ">
                        <div class="col-lg-12">
                            <br/>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover" >
                            <thead>
                                <tr>
                                    <th><a href="javascript:void(0);" onclick="H_CHECK_ALL('id[]');">全选</a></th>                                            
                                    <th>ID</th>                                                                                
                                    <th>名称</th>
                                    <th>文章数</th>                                    
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {%for row in list%}
                                <tr>
                                    <td><input type="checkbox" name="id[]" value="{{row.id}}" /></td>
                                    <td>{{row.id}}</td>                                            
                                    <td >
                                        {{row.name}}                                      
                                    </td>                                   
                                    <td>0</td>
                                    <td>
                                        
                                    </td>
                                </tr>                                            
                                {% else %}
                                <tr >
                                    <td colspan="6" align="center">暂无数据</td>                                            
                                </tr>    
                                {%endfor%}                                        
                            </tbody>
                        </table>
                {{page.toHtml()}}
                    </div>
                </div>
                <!-- /#page-wrapper -->
            </div>
           
            {% endblock %}
